package com.meida.module.bus.client.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.base.entity.AbstractEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.meida.common.mybatis.annotation.TableAlias;

/**
 * 联系人表
 *
 * @author flyme
 * @date 2022-03-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_contacts")
@TableAlias("contacts")
@ApiModel(value="BusContacts对象", description="联系人表")
public class BusContacts extends AbstractEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "contactsId", type = IdType.ASSIGN_ID)
    private Long contactsId;

    @ApiModelProperty(value = "是否默认（1是，2否）")
    private Integer isDef;

    @ApiModelProperty(value = "姓名")
    private String userName;

    @ApiModelProperty(value = "国内手机号")
    private String userPhone;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "是否删除")
    private Integer deleted;

}
